package com.perceptivesoftware.licensing.client.dialogs.useradmin.plugin.role;

import com.google.gwt.user.client.rpc.IsSerializable;
import com.perceptivesoftware.licensing.client.dto.PermissionsDTO;

public class RoleDTO implements IsSerializable {

	PermissionsDTO permissionsDTO;
	String roleCode;

	@SuppressWarnings("unused")
	// for serialization
	private RoleDTO() {
		//
	}

	public RoleDTO(final String roleCode) {
		this.roleCode = roleCode;
	}

	public PermissionsDTO getPermissionsDTO() {
		return permissionsDTO;
	}

	public void setPermissionsDTO(final PermissionsDTO permissionsDTO) {
		this.permissionsDTO = permissionsDTO;
	}

	public String getRoleCode() {
		return roleCode;
	}

	@SuppressWarnings("unused")
	// for serialization
	private void setRoleCode(final String roleCode) {
		this.roleCode = roleCode;
	}
}
